<?php

namespace App\Models\Pay;

use App\Models\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PayReportFields extends Model
{
    protected $table = 'akbus_pay_report_fields';

    protected $fillable = [
        'report_id',
        'header_name',
        'parent_id',
        'column_name',
        'table_name',
        'is_show',
        'sort',
    ];

    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    public function report(): BelongsTo
    {
        return $this->belongsTo(PayReport::class);
    }
}
